package com.yeung.exam;

import java.util.Scanner;
import java.util.regex.Pattern;

public class 快手_验证IP地址 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println(isValidIp(sc.nextLine()));
    }

    static boolean isValidIp(String ip) {
        Pattern.compile("^(\\d|[1-9]\\d|1\\d{2}|2([0-4]\\d|5[0-5]))\\.){4}$");
        return true;
    }
}
